﻿using Common;
using SIPSDk;
using SIPSDk.Pjsip;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WinformTest
{
    public partial class Form1 : Form
    {
        SIPProvider provider = new PjsipProvider();
        PJSIPTelephony pjsipTelephony;

        public Form1()
        {
            InitializeComponent();
            Logger.Info("载入！");

            //初始化配置
            UserSIPConfig.DefaultAvailableUDPPort = 5060;
            UserSIPConfig.UserSIPId = "8006";
            UserSIPConfig.UserSIPDisplayName = "8006";
            UserSIPConfig.UserSIPPassword = "123";
            UserSIPConfig.UserRegistServerIP = "119.23.149.12";
            UserSIPConfig.CallReservedSeconds = 120;
            provider.InitialSIP();

        }

        private void button1_Click(object sender, EventArgs e)
        {
            provider.RegisterAccount();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
        }
    }
}
